#ifndef TPLATE
#define TPLATE
#include <vector>
using namespace std;

typedef struct {
    int tpsize;
    int *pos;
} tplate;

typedef struct {
    int dvsize;
    int *tpos;
    int *pos;
    float *value;
} data_event_cont;

void load_template_3D(tplate * tp, char *fn);

void get_dv_3D(data_event_cont * dv, tplate * tp, float * target,
               int length, int width, int x, int y, int max_dv);

#endif                            /* ifndef TPLATE */
